package turistic.GUI.graphic;



public class Generator {

/*	public void Generate(dist,fist) {
        try {
        	using (SqlConnection cn = new SqlConnection("Database=Test1; User Id=UserName; password=Password")) {
            
         
            Statement stmt = cn.createStatement();
            ResultSet rs;
			int array[][]
 
            rs = stmt.executeQuery("SELECT count(*),kiindulopont,vegpont,tav FROM tavolsagok WHERE tav = < " + dist + " and kiindulopont = " + first);
			for (i=0; i< rs(0) - 1; i++) {
				array[i,1] = rs(i*4 +1);
				array[i,2] = rs(i*4 +2);
				dist2 = dist - rs(i*4 + 3);
				first2 = rs(i*4 +2);
				rs = stmt.executeQuery("SELECT count(*),kiindulopont,vegpont,tav FROM tavolsagok WHERE tav = < " + dist2 + " and kiindulopont = " + first2);
				for (j=0; j< rs2(0)-1) {
					array[j,3] = rs(j*4+2);
					dist3 = dist2 - rs(j*4 + 3);
					//...
				}
			}
            conn.close();
        } catch (Exception e) {
            System.err.println("Got an exception! ");
            System.err.println(e.getMessage());
        }
        }
	*/
}
